package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户角色关系表
 * </p>
 *
 * @author itheima
 * @since 2021-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_answer")
public class Answer implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id" ,type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 题库id
     */
    private Integer courseId;

    /**
     * 做题标记，0没做，1没有，2很轻，3中等，4偏重，5严重
     */
    private String answer;

    /**
     * 0 暂时提交 1已提交
     */
    private Boolean isSubmit;

}
